<div class="layui-form-item">
  <label class="layui-form-label">{$value['desc']|default=''}</label>
  <div class="layui-input-block">
    <input name="{$value['name']|default=''}" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="{$value['option']}" {if $value['value']==1}checked=""{/if}>
    <div><tip>{$value['tagging']|default=''}</tip></div>
  </div>
</div>